﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _05继承
{
    class Pistol:Weapon
    {
        public string skillName;    //技能
        public Pistol()
        { }

        public Pistol(string name, int mc, int an, float dis,string skill):base(name,mc,an,dis)
        {
            skillName = skill;
        }

        //隐藏父类内包含的方法
        //public new void Fire()
        //{
        //}

        //重写
        public override void Fire()
        {
            base.Fire();
        }

    }
}
